package com.example.oversea_home_spring.service;

import com.example.oversea_home_spring.bean.Management;
import com.example.oversea_home_spring.bean.Order;
import com.example.oversea_home_spring.uitl.Result;

import java.util.List;

public interface WorkerService {

    // 待处理的订单 工人id
    List<Order> selectAllOrder(String workerId);

    //我处理的订单  工人id
    List<Order> selectMyOrder(String workerId);

    //订单处理
    int updateOrder(Order order);

    //加入仓库工作
    int addManagement(Management management);

    //辞职
    int updateManagementStatus(String managementId);
}
